Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633457 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/61 - Greeting Card

style.css cody/swapnilsparsh/30DaysOfJavaScript/61 - Greeting Card/style.css
100 Views
0 Comments
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Prata&family=Vollkorn:ital,wght@1,500&display=swap');

* {
overflow: hidden;
}

.navbar-brand {
color: whitesmoke !important;
index.html cody/swapnilsparsh/30DaysOfJavaScript/61 - Greeting Card/index.html
332 Views
0 Comments
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="style.css" rel="stylesheet" />
script.js cody/swapnilsparsh/30DaysOfJavaScript/61 - Greeting Card/script.js
166 Views
0 Comments
let curHr = new Date().getHours();
const dayFormat = new Intl.DateTimeFormat('en', { weekday: 'long' });
const dateFormat = new Intl.DateTimeFormat('en', { year: 'numeric', month: 'long', day: '2-digit' });
const timeFormat = new Intl.DateTimeFormat('en', { hour: 'numeric', minute: 'numeric', second: 'numeric' });

setInterval(() => {
const date = new Date();
document.getElementById("day").innerHTML = dayFormat.format(date)